<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>帖子详情 - 邻里社区</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        :root {
            --primary: #3A7BFF;
            --primary-light: #E8F0FF;
            --accent: #FF7D45;
            --success: #4CAF50;
            --warning: #FFC107;
            --text-dark: #333333;
            --text-medium: #666666;
            --text-light: #999999;
            --background: #FAFAFA;
            --card-bg: #FFFFFF;
            --border-radius: 16px;
            --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Comic Sans MS', 'Marker Felt', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif; }
        body { 
            background-color: var(--background); 
            color: var(--text-dark); 
            line-height: 1.6; 
            max-width: 500px; 
            margin: 0 auto; 
            padding: 0 15px 80px; 
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 极c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 极-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 极.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.极6 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e0e0' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
        }
        
        /* 头部设计 */
        .header { 
            background: linear-gradient(135deg, var(--primary), #5A91FF); 
            color: white; 
            padding: 18px 15px; 
            border-radius: 0 0 30px 30px; 
            margin-bottom: 25px; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            box-shadow: 0 8px 24px rgba(58, 123, 255, 0.25); 
            position: relative;
            overflow: hidden;
        }
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 120px;
            height: 120px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='极://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' fill-opacity='0.2' d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3极/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            transform: rotate(15deg) translate(20px, -40px);
        }
        .logo { 
            font-size: 1.6rem; 
            font-weight: bold; 
            display: flex; 
            align-items: center; 
            position: relative;
            z-index: 2;
        }
        .logo i { 
            margin-right: 10px; 
            font-size: 1.8rem;
            animation: pulse 2s infinite;
        }
        .header-icons { 
            display: flex; 
            gap: 20px; 
            font-size: 1.4rem; 
            position: relative;
            z-index: 2;
        }
        .header-icons i {
            transition: var(--transition);
        }
        .header-icons i:hover {
            transform: scale(1.15);
        }
        
        /* 返回按钮 */
        .back-btn {
            display: inline-flex;
            align-items: center;
            color: var(--primary);
            font-weight: 500;
            margin-bottom: 15px;
            cursor: pointer;
            transition: var(--transition);
        }
        .back-btn:hover {
            color: var(--accent);
            transform: translateX(-5px);
        }
        .back-btn i {
            margin-right: 8px;
        }
        
        /* 帖子详情卡片 */
        .post-detail-card { 
            background-color: var(--card-bg); 
            border-radius: 20px; 
            padding: 25px; 
            margin-bottom: 20px; 
            box-shadow: var(--shadow);
            border-top: 5px solid var(--primary);
        }
        
        .post-header { 
            display: flex; 
            align-items: center; 
            margin-bottom: 20px; 
        }
        .post-avatar { 
            width: 55px; 
            height: 55px; 
            border-radius: 50%; 
            background-color: #f0f5ff; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            margin-right: 15px; 
            color: var(--primary);
            font-size: 1.5rem;
            border: 2px solid white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .post-user-info { 
            flex: 1; 
        }
        .post-user-name { 
            font-weight: 600; 
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .post-user-name .badge {
            background-color: var(--primary-light);
            color: var(--primary);
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: normal;
        }
        .post-time { 
            font-size: 0.9rem; 
            color: var(--text-light); 
        }
        .post-title { 
            font-weight: 700; 
            margin-bottom: 15px; 
            font-size: 1.4rem;
            color: var(--text-dark);
            line-height: 1.4;
        }
        .post-content { 
            color: var(--text-medium); 
            margin-bottom: 20px; 
            line-height: 1.7;
            font-size: 1.05rem;
        }
        .post-tags {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .post-tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        .post-footer { 
            display: flex; 
            justify-content: space-between; 
            color: var(--text-light); 
            font-size: 1rem; 
            padding-top: 15px;
            border-top: 1px solid #f5f5f5;
        }
        .post-action { 
            display: flex; 
            align-items: center; 
            gap: 8px; 
            cursor: pointer; 
            transition: var(--transition);
            padding: 8px 15px;
            border-radius: 20px;
        }
        .post-action:hover {
            background-color: #f5f5f5;
        }
        .post-action i {
            transition: var(--transition);
        }
        .post-action.like:hover i {
            color: #F44336;
            transform: scale(1.2);
        }
        .post-action.comment:hover i {
            color: var(--primary);
            transform: scale(1.2);
        }
        .post-action.share:hover i {
            color: var(--success);
            transform: scale(1.2);
        }
        
        /* 评论区 */
        .comments-section {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: var(--shadow);
        }
        .section-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-title i {
            color: var(--primary);
        }
        
        /* 评论表单 */
        .comment-form {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
        }
        .comment-input {
            flex: 1;
            border: 1px solid #e0e0e0;
            border-radius: 30px;
            padding: 12px 20px;
            font-size: 1rem;
            outline: none;
            transition: var(--transition);
        }
        .comment-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(58, 123, 255, 0.2);
        }
        .comment-submit {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 12px 20px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        .comment-submit:hover {
            background-color: #2A6BFF;
            transform: translateY(-2px);
        }
        
        /* 评论列表 */
        .comment-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .comment-item {
            display: flex;
            gap: 15px;
            padding-bottom: 20px;
            border-bottom: 1px solid #f0f0f0;
        }
        .comment-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        .comment-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background-color: #f9f9f9;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.2rem;
            flex-shrink: 0;
        }
        .comment-content {
            flex: 1;
        }
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        .comment-author {
            font-weight: 600;
            font-size: 1rem;
        }
        .comment-time {
            font-size: 0.85rem;
            color: var(--text-light);
        }
        .comment-text {
            color: var(--text-medium);
            line-height: 1.6;
        }
        .comment-actions {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }
        .comment-action {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--text-light);
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
        }
        .comment-action:hover {
            color: var(--primary);
        }
        
        /* 相关帖子 */
        .related-posts {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: var(--shadow);
        }
        .related-post {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: var(--transition);
        }
        .related-post:hover {
            background-color: #f9f9f9;
            border-radius: 10px;
            padding: 15px;
        }
        .related-post:last-child {
            border-bottom: none;
        }
        .related-post-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #f9f9f9;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1rem;
            flex-shrink: 0;
        }
        .related-post-content {
            flex: 1;
        }
        .related-post-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 1rem;
        }
        .related-post-info {
            display: flex;
            gap: 10px;
            font-size: 0.85rem;
            color: var(--text-light);
        }
        
        /* 底部导航 */
        .bottom-nav { 
            position: fixed; 
            bottom: 0; 
            left: 0; 
            right: 0; 
            background-color: var(--card-bg); 
            display: flex; 
            justify-content: space-around; 
            padding: 15px 0 10px; 
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05); 
            max-width: 500px; 
            margin: 0 auto; 
            z-index: 1000; 
            border-radius: 25px 25px 0 0;
        }
        .nav-item { 
            text-align: center; 
            color: var(--text-light); 
            text-decoration: none; 
            font-size: 0.85rem; 
            transition: var(--transition);
            position: relative;
            padding: 5px 10px;
            border-radius: 20px;
        }
        .nav-item.active { 
            color: var(--primary);
            background-color: rgba(58, 123, 255, 0.1);
        }
        .nav-item i { 
            font-size: 1.4rem; 
            display: block; 
            margin-bottom: 5px; 
        }
        .nav-item .notification-badge {
            position: absolute;
            top: -5px;
            right: 5px;
            background-color: var(--accent);
            color: white;
            font-size: 0.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        /* 发布按钮 */
        .publish-btn { 
            position: relative; 
        }
        .publish-btn .nav-item { 
            width: 60px; 
            height: 60px; 
            border-radius: 50%; 
            background: linear-gradient(135deg, var(--primary), #5A91FF); 
            color: white; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            margin-top: -25px; 
            box-shadow: 0 6极 16px rgba(58, 123, 255, 0.4);
            transition: var(--transition);
        }
        .publish-btn .nav-item:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 8px 20px rgba(58, 123, 255, 0.5);
        }
        .publish-btn .nav-item i { 
            margin: 0; 
            font-size: 1.8rem; 
        }
        
        /* 动画 */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 响应式调整 */
        @media (max-width: 375px) {
            .post-title {
                font-size: 1.2rem;
            }
            .comment-form {
                flex-direction: column;
            }
            .comment-submit {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="logo"><i class="fas fa-hands-helping"></i> 邻里社区</div>
        <div class="header-icons">
            <i class="far fa-bell"></i>
            <i class="far fa-user-circle"></i>
        </div>
    </div>
    
    <div class="back-btn" onclick="history.back()">
        <i class="fas fa-arrow-left"></i> 返回首页
    </div>
    
    <div class="post-detail-card">
        <div class="post-header">
            <div class="post-avatar"><i class="fas fa-user"></i></div>
            <div class="post-user-info">
                <div class="post-user-name">王先生 <span class="badge">社区达人</span></div>
                <div class="post-time">3天前</div>
            </div>
        </div>
        <div class="post-title">周末组织篮球活动</div>
        <div class="post-content">
            <p>大家好！我是3号楼的王先生，这周末我想组织一场社区篮球活动，欢迎所有感兴趣的邻居参加！</p>
            <p>时间：本周六下午3点</p>
            <p>地点：社区篮球场</p>
            <p>不论水平，重在参与！我们还准备了小零食和饮料，打完球可以一起聊聊天，增进邻里感情。</p>
            <p>如果天气不好，我们会改在社区活动中心进行一些室内活动。请有兴趣的邻居在下面留言，方便我统计人数。</p>
        </div>
        <div class="post-tags">
            <div class="post-tag">#社区活动</div>
            <div class="post-tag">#运动健身</div>
            <div class="post-tag">#周末聚会</div>
        </div>
        <div class="post-footer">
            <div class="post-action like"><i class="fas fa-heart"></i> <span>32</span></div>
            <div class="post-action comment"><i class="fas fa-comment-dots"></i> <span>12</span></div>
            <div class="post-action share"><i class="fas fa-share-alt"></i> <span>7</span></div>
        </div>
    </div>
    
    <div class="comments-section">
        <div class="section-title"><i class="fas fa-comments"></i> 评论 (12)</div>
        
        <div class="comment-form">
            <input type="text" class="comment-input" placeholder="写下你的评论...">
            <button class="comment-submit">发布</button>
        </div>
        
        <div class="comment-list">
            <div class="comment-item">
                <div class="comment-avatar"><i class="fas fa-user"></i></div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">李邻居</div>
                        <div class="comment-time">2天前</div>
                    </div>
                    <div class="comment-text">好主意！我报名参加，还会带我家孩子一起来，他也很喜欢打篮球。</div>
                    <div class="comment-actions">
                        <div class="comment-action"><i class="far fa-heart"></i> <span>5</span></div>
                        <div class="comment-action">回复</div>
                    </div>
                </div>
            </div>
            
            <div class="comment-item">
                <div class="comment-avatar"><i class="fas fa-user"></i></div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">张阿姨</div>
                        <div class="comment-time">1天前</div>
                    </div>
                    <div class="comment-text">我可以带一些自制点心来，大家运动完可以补充能量！需要我准备什么特别的吗？</div>
                    <div class="comment-actions">
                        <div class="comment-action"><i class="far fa-heart"></i> <span>3</span></div>
                        <div class="comment-action">回复</div>
                    </div>
                </div>
            </div>
            
            <div class="comment-item">
                <div class="comment-avatar"><i class="fas fa-user"></i></div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">赵大哥</div>
                        <div class="comment-time">12小时前</div>
                    </div>
                    <div class="comment-text">我会带一些额外的篮球，如果有人没有装备也可以来参加。期待和大家一起运动！